import java.util.Map;

public class CalculaUtilizacao {
	
	public static void main(String[] args) {
		ConexaoBanco bd;
		
		bd = new ConexaoBanco();
		
		Map<Integer, Integer> mapa = bd.calculaRanking();
		
		for(Integer key:mapa.keySet()){
			int qtde = mapa.get(key);
			System.out.println(Integer.toString(key) + " -> " + Integer.toString(qtde));
		}
	}
}
